﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace EMR_System
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            while (Session.Instance.User == null)
            {
                Application.Run(new Forms.LoginForm());

                if (Session.Instance.User.Username != null)
                    Application.Run(new Forms.EMRForm());
            }
        }
    }
}
